//
//  OTTool.h
//  OT_OC
//
//  Created by yunmian on 2019/7/16.
//  Copyright © 2019 James. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface OTTool : NSObject

/**
 字符串是否为空
 
 @param text <#text description#>
 @return <#return value description#>
 */
+ (BOOL)isStringEmptyWithText:(NSString *)text;

/**
 数组是否为空
 
 @param array <#array description#>
 @return <#return value description#>
 */
+ (BOOL)isArrayEmptyWithArray:(NSArray *)array;

/**
 toast

 @param text <#text description#>
 */
+ (void)showToastWithText:(NSString *)text;

/**
 裁剪小数点，超过两位只保留三位小数点
 
 @param text <#text description#>
 @return <#return value description#>
 */
+ (NSString *)trimNumStrWithText:(NSString *)text;
@end

NS_ASSUME_NONNULL_END
